<?php

namespace App\Http\Controllers;

use App\Models\Image;

class Index
{


    function index()
    {
        $bg = Image::where('code',1)->get(['route'])->toArray();
//        dd($bg);
        return view('index',[
            'bg' => $bg
        ]);
    }

}